# Purpose: This driver file is a simple interface to run
# all of the R files in this folder.
library(tidyverse)
library(fbr)
library(ggplot2)
library(gridExtra)
library(weights)
library(RColorBrewer)
library(stringr)
library(Hmisc)
library(dineq)
library(lfe)
library(stargazer)
library(gt)
library(data.table)
library(dtplyr)
library(binsreg)
library(ggpubr)
library(fixest)

options(scipen=10000) # to make our plots avoid scientific notation

# Compare our population to the 'true' set of Syrian migrants
source("migration_fb_vs_true.R")
rm(list=ls())

# Produce some basic summary stats at the individual level
source("individual_summary_stats.R")
rm(list=ls())

# Produce the change in integration over time plots
source("integration_over_time.R")
rm(list=ls())

# Produce the regional estimates of integration
source("regional_integration.R")
rm(list=ls())

# Produce the simple n-tile movers plots
source("movers_plots_ntiles.R")
rm(list=ls())

# Produce the more complex (and computationally intensive) movers/levels plots
source("movers_plots_levels.R")
rm(list=ls())

# Produce the levels-matching movers plots for the language outcome
source("movers_plots_language.R")
rm(list=ls())

# Produce the figures related to the directionality of friendships
source("friendship_initiation.R")
rm(list=ls())

# Produce the summary statistics for the survey data
source("survey_analysis.R")
rm(list=ls())
